package org.example.pojo;

import java.io.Serializable;

public class User implements Serializable {
    private static final long serialVersionUID = 1246652761292230801L;
    private String userName;
    private String sex;
    private int age;



    public User() {
    }

    User(String userName, String sex) {
        this.userName = userName;
        this.sex = sex;
    }

    public User(String userName, String sex, int age) {
        this.userName = userName;
        this.sex = sex;
        this.age = age;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void show() {
        System.out.println("show");
    }

    public void method(String s) {
        System.out.println("method"+s);
    }
}
